﻿using System.Runtime.Serialization;

namespace TimeTravel.Components
{
    /// <summary>
    /// 站点访问信息
    /// </summary>
    [DataContract]
    public class VisitorInfo : BaseComponent
    {
        /// <summary>
        /// 访者IP
        /// </summary>		
        [DataMember(Name = "clientip")]
        public string ClientIP { get; set; }

        /// <summary>
        /// 访者浏览器
        /// </summary>		
        [DataMember(Name = "browser")]
        public string Browser { get; set; }

        /// <summary>
        /// 来访日期（时间戳格式）
        /// </summary>		
        [DataMember(Name = "date")]
        public int Date { get; set; }

        /// <summary>
        /// 接入来源
        /// </summary>		
        [DataMember(Name = "source")]
        public string Source { get; set; }

        /// <summary>
        /// UserAgent
        /// </summary>
        [DataMember(Name = "useragent")]
        public string UserAgent { get; set; }
    }
}